package com.stxx.framwork.constants;

import com.stxx.framwork.support.OptionInterface;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public enum SceneActionType implements OptionInterface {
    WRITE("写属性"),
    READ("读属性");
    //RPC("远程调用");
    String code;
    SceneActionType(String name){
        this.code = name;
    }

    public static List<String> getList(){
        return Arrays.stream(LogicType.values()).map(item->item.code).collect(Collectors.toList());
    }
    @Override
    public String getValue() {
        return this.name();
    }

    @Override
    public String getLabel() {
        return this.code;
    }
}
